<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>教师提成管理</title>
<link rel="stylesheet" href="../../easyui/themes/default/easyui.css"
	type="text/css" media="screen" />
<link rel="stylesheet" href="../../easyui/themes/icon.css"
	type="text/css" media="screen" />
<link rel="stylesheet" href="../../css/main.css" type="text/css"
	media="screen" />
<link rel="stylesheet" type="text/css" href="../../css/Tooltip.css" />
<script src="../../myjs/teacher/tea_commissionManager.js"></script>
<script src="../../easyui/jquery-1.4.4.min.js"></script>
<script src="../../easyui/jquery.easyui.min.js"></script>
<!-- mytab -->
<script src="../../myjs/myTab.js"></script>
<!-- sys -->
<script src="../../myjs/sys.js"></script>
<script src="../../myjs/DatePicker/WdatePicker.js"></script>
<script src="../../easyui/easyMask.js"></script>
<script src="../../easyui/easyUI.js"></script>
<script src="../../easyui/easyLayer.js"></script>
<style type="text/css">
<!--
.style2 {font-size: 18px}
-->
</style>
</head>
<body>
<script>
var realName='<%=session.getAttribute("realName")%>';
var greyLayer ;
$(function(){
	grid = $('#tt').datagrid({
		url:'/pxglxt/tea_commission/getTea_commissions/',
		pagination:true,
		singleSelect:true,
		fit:true,//表格自动填充
		loadMsg:'正在努力为您加载，请稍作等待…',//加载信息
		toolbar:[{
			text:'新增',
			iconCls:'icon-add',
			handler:'newTea_commission'
		},'-',{
			text:'修改',
			iconCls:'icon-edit',
			handler:'editTea_commission'
			
		},'-',{
			text:'删除',
			iconCls:'icon-remove',
			handler:'delTea_commission'
		}]
	});
	//初始化pagination工具开始
	var pagetool = $('#tt').datagrid('getPager');
	pagetool.pagination({				
			beforePageText:'第',
			afterPageText:'页，共{pages}页',
			displayMsg:'显示从 {from} 到  {to} , 总记录 {total} '});
	//初始化pagination工具结束
	$('body').layout();
	$('#btn-save,#btn-cancel').linkbutton();
	win = $('#user-window').window({
		collapsible:false,
		minimizable:false, 
		maximizable:false, 
		closable:true,
		onClose:function(){greyLayer.close();},
		closed:true
	});
	form = win.find('form');
	greyLayer = new easyMask(null,'100%','100%',100,'#000',8,true);
	
});
</script>
<div region="center" fit="true" style="padding: 5px;">
<table id="tt">
	<thead>
		<tr>
			<th field="tea_real_name" width="100%">教师姓名</th>
			<th field="tea_com_value" width="100%">提成标准</th>
			<th field="tea_com_desc" width="200%">备注</th>
		</tr>
	</thead>
</table>
</div>
<div id="user-window" title="教师提成管理窗口"
	style="width: 580px; height: 300px;">
	<div style="padding: 10px 10px 10px 10px;">
<form method="post">
<table border="1" cellpadding="1" cellspacing="1" bordercolor="#E7E7E7">
  <tr align="center" valign="middle">
    <td align="center" bgcolor="#F6F6F6"><strong>教师姓名</strong></td>
    <td align="left"><input class="easyui-combobox" name="tea_id"
			url="/pxglxt/tea_commission/getTeachers" valueField="id"
			textField="tea_real_name" multiple="false" panelHeight="auto"
			style="width: 220px" required="true"></input></td>
  </tr>
  <tr align="center" valign="middle">
    <td align="center" bgcolor="#F6F6F6"><strong>提成标准 </strong></td>
    <td align="left"><input type="text" name="tea_com_value"
			id="tea_com_value" value="" maxlength="100" class="easyui-validatebox"
			required="true" missingMessage="提成标准输入百分数值。如：10%"></input></td>
   
  </tr>  
  <tr align="center" valign="middle">
    <td align="center" bgcolor="#F6F6F6"><strong>备注</strong></td>
    <td colspan="4" align="left"><textarea name="tea_com_desc" id="sal_com_desc"
	class="easyui-validatebox" required="false"
	style="height: 100px; width: 460px; padding: 3px 5px; border: solid 1px #B8BFE9;"></textarea></td>
  </tr>
</table>
</form>
</div>
<div style="text-align: center; padding: 5px;"><a
	href="javascript:void(0)" onclick="saveTea_commission()" id="btn-save"
	icon="icon-save">确定</a> <a href="javascript:void(0)"
	onclick="closeWindow()" id="btn-cancel" icon="icon-cancel">取消</a></div>
	</div>
</body>
</html>
